import request from '@/utils/request'

export default {
    update(obj) {
        return request({
          url: '/admin/user/update',
          method: 'put',
          data: obj
        })
      },
      getByUsername(){
        return request({
            url: `/admin/user/getByUsername`,
            method: 'get'
          })
      },

      getCountInfo(){
        return request({
          url: `/admin/user/getCountInfo`,
          method: 'get'
        })
      }
}